<?xml version="1.0" encoding="UTF-8"?>

<!--
    Document   : products.xsl
    Created on : March 7, 2012, 12:50 PM
    Author     : Violet_Ink
    Description:
        Purpose of transformation follows.
-->

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
    <xsl:output method="html"/>

    <!-- TODO customize transformation rules 
         syntax recommendation http://www.w3.org/TR/xslt 
    -->
    <xsl:template match="/">
        <html>
            <head>
                <xsl:apply-templates/>
                <title>products.xsl</title>
            </head>
            <body>
                
            </body>
        </html>
    </xsl:template>
    <xsl:template match="product">
        <table border="2" width="75%">
            <xsl:for-each select="items">
                    <tr>
                            <td>
                                    <xsl:value-of select="code"/>
                            </td>
                            <td>
                                    <xsl:value-of select="name"/>
                            </td>
                            <td>
                                    <xsl:value-of select="price"/>
                            </td>
                    </tr>
            </xsl:for-each>
        </table>
    </xsl:template>


</xsl:stylesheet>
